package com.octopus.kernal.util.xml;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

@XmlType(name="OneToMany")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement
public class OneToMany {
	
	@XmlAttribute
	private String fetch = "lazy";
	
	@XmlAttribute
	private String mappedBy;
	
	@XmlAttribute
	private String cascade;
	
	@XmlAttribute
	private String orderBy = "id asc";

	public String getFetch() {
		return fetch;
	}

	public void setFetch(String fetch) {
		this.fetch = fetch;
	}

	public String getMappedBy() {
		return mappedBy;
	}

	public void setMappedBy(String mappedBy) {
		this.mappedBy = mappedBy;
	}

	public String getCascade() {
		return cascade;
	}

	public void setCascade(String cascade) {
		this.cascade = cascade;
	}

	public String getOrderBy() {
		return orderBy;
	}

	public void setOrderBy(String orderBy) {
		this.orderBy = orderBy;
	}

}
